import java.lang.String;
import java.util.Arrays;

public class demo {
//    public static void transform(int[] a,int i)
//    {
//        int j = 0;
//        for (;j<i;j++)
//        {
//            a[j]=2*a[j];
//        }
//    }
/*    public static int Add (int[] a)
    {
        int sum = 0;
        int i = 0;
        for (;i<a.length;i++)
        {
            sum += a[i];
        }
        return sum;
    }*/
    public static void mysort(int[] a,int len)
    {
        int i = 0;
        for (;i < a.length-1;i++)
        {
                int tmp = 0;
                for (int j = 0;j<i-1;j++)
                {
                    if (a[j] % 2 == 0) {
                    tmp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = tmp;
                    }
                }
        }
    }
    public static void main(String[] args) {
        /*int[] arr = new int[]{1,2,3,4,5,6,7,8,9,10};*/
        int[] edd = new int[]{3,4,1,6,5,8,9,10,11,2};
      /*  transform(arr,arr.length);
        String gcc = Arrays.toString(arr);
        System.out.println(gcc);*/
 /*       System.out.println(Add(arr));*/
        mysort(edd,edd.length);
        System.out.println(Arrays.toString(edd));
    }
}
